﻿namespace Demo.Framework.Business
{
    public static class GraphicSettings
    {
        private static int _antiAliasing;

        #region events

        public delegate void GraphicsChangeDelegate();

        public static event GraphicsChangeDelegate GraphicsChanged;

        private static void OnGraphicsChanged()
        {
            GraphicsChangeDelegate handler = GraphicsChanged;
            if (handler != null) handler();
        }

        #endregion

        public static int AntiAliasing
        {
            get { return _antiAliasing; }
            set
            {
                _antiAliasing = value;
                OnGraphicsChanged();
            }
        }

        public static bool EnabledBlur
        { get; set; }
    }
}
